﻿namespace MhAdmin.SqlSugar;

/// <summary>
/// 编码规则
///</summary>
[SugarTable("dev_rules", TableDescription = "编码规则")]
[Tenant(SqlsugarConst.DB_Default)]
public class DevRules : DataEntityBase
{
    /// <summary>
    /// 名称
    ///</summary>
    [SugarColumn(ColumnName = "RuleName", ColumnDescription = "名称")]
    public string RuleName { get; set; }

    /// <summary>
    /// 编号
    ///</summary>
    [SugarColumn(ColumnName = "RuleCode", ColumnDescription = "编号")]
    public string RuleCode { get; set; }

    /// <summary>
    /// 类型
    ///</summary>
    [SugarColumn(ColumnName = "RuleType", ColumnDescription = "类型")]
    public string RuleType { get; set; }

    /// <summary>
    /// 分类
    ///</summary>
    [SugarColumn(ColumnName = "RuleClass", ColumnDescription = "分类")]
    public string RuleClass { get; set; }

    /// <summary>
    /// 前缀
    ///</summary>
    [SugarColumn(ColumnName = "Header", ColumnDescription = "前缀")]
    public string Header { get; set; }

    /// <summary>
    /// 中间时间
    ///</summary>
    [SugarColumn(ColumnName = "MiddleTime", ColumnDescription = "中间时间")]
    public string MiddleTime { get; set; }

    /// <summary>
    /// 后缀(长度)
    ///</summary>
    [SugarColumn(ColumnName = "LastLen", ColumnDescription = "后缀(长度)")]
    public int LastLen { get; set; }

    /// <summary>
    /// 起始量
    /// </summary>
    public int StartValue { get; set; }
}
